<ion-header>
      <ion-navbar>
        <ion-title>{{title}}</ion-title>
      </ion-navbar>
    
    </ion-header>
    <ion-content class="elevator-used-inspection">

        <div *ngFor="let item of itemList let i = index ">
            <div class="selectSection">
                <div class="selectTitle">
                    <p>{{item.name}}</p>
                </div>
                <div class="sel_content" *ngFor="let list of itemList[i].list let j = index">
                    <div class="con_title" style="padding-top:1px;height:auto;">
                        <p>{{list.itemContent}}</p>
                    </div>
                    <div class="con_option">
                        <input type="radio" name="{{i}}+''+{{j}}" [(ngModel)]="itemResult[list.itemNo].result" value="1" id="yes" ><label for="yes">是</label>
                        <input type="radio" name="{{i}}+''+{{j}}" [(ngModel)]="itemResult[list.itemNo].result" value="0" id="no"><label for="no">否</label>
                        <input *ngIf="checkFlag" type="radio" name="{{i}}+''+{{j}}" [(ngModel)]="itemResult[list.itemNo].result"  id="nohave"
                        value="2"><label *ngIf="checkFlag" for="nohave">无此项</label>
                    </div>
                </div>
                <div *ngIf="itemNum == i">
                    <button *ngIf="!flag" ion-button (click)="submit()" class="submit">保存</button>
                </div>
            </div>
        </div>
        <ion-list *ngIf="flag">
            <ion-item>无检查项</ion-item>
        </ion-list>
    </ion-content>
    <ion-footer>
        <button *ngIf="flag" ion-button (click)="back()" class="submit">返回</button>
    </ion-footer>
